package io.github.liuyuhao412.manager.request;

/**
 * 接收前端用户更新请求数据
 */
public class UpdateUserRequest {
	private Integer id;
	private String username;
	private Integer role; // 0=管理员, 1=用户
	private Integer status; // 1=正常, 0=禁用

	public UpdateUserRequest() {
	}

	public UpdateUserRequest(Integer id, String username, Integer role, Integer status) {
		this.id = id;
		this.username = username;
		this.role = role;
		this.status = status;
	}

	// Getter 和 Setter
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}
